/*
Written by Alex Chachanashvili

$Id: AOSInputProcessorInterface.cpp 248 2008-07-24 21:09:38Z achacha $
*/
#include "pchAOS_Base.hpp"
#include "AOSInputProcessorInterface.hpp"

void AOSInputProcessorInterface::debugDump(std::ostream& os, int indent) const
{
  ADebugDumpable::indent(os, indent) << "(" << typeid(*this).name() << " @ " << std::hex << this << std::dec << ") {" << std::endl;

  ADebugDumpable::indent(os, indent+1) << "m_ExecutionTimeAverage=" << std::endl;
  m_ExecutionTimeAverage.debugDump(os, indent+2);
  
  ADebugDumpable::indent(os, indent) << "}" << std::endl;
}

AOSInputProcessorInterface::AOSInputProcessorInterface(AOSServices& services) :
  m_Services(services)
{
}

void AOSInputProcessorInterface::adminEmitXml(AXmlElement& eBase, const AHTTPRequestHeader& request)
{
  AOSAdminInterface::adminEmitXml(eBase, request);

  adminAddProperty(eBase, ASW("ExecutionTimeAverage",20), m_ExecutionTimeAverage);
  adminAddProperty(eBase, ASW("ExecutionTimeCount",18), AString::fromU8(m_ExecutionTimeAverage.getCount()));
}
